﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;

namespace TestService.Contract.Data
{
    /// <summary>
    /// 数据实体
    /// </summary>
    [DataContract]
    public class RealTimeEventMessage
    {

        public RealTimeEventMessage()
        {

        }

        public RealTimeEventMessage(MessageModel msg, string eventName, string entityIdType,
            string description, string additionalData, DateTime date)
        {
            this.Msg = msg;
            this.EventName = eventName;
            this.EntityIdType = entityIdType;
            this.Description = description;
            this.AdditionalData = additionalData;
            this.Date = date;
        }

        [DataMember]
        public MessageModel Msg { get; set; }

        [DataMember]
        public string EventName { get; set; }

        [DataMember]
        public string EntityIdType { get; set; }

        [DataMember]
        public string Description { get; set; }

        [DataMember]
        public string AdditionalData { get; set; }

        [DataMember]
        public DateTime? Date { get; set; }
    }
}
